﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Web.Models.User
{
    public class LoginPageViewModel
    {
        public LoginPageViewModel()
        {
            UserDataUpdate = new UserDataUpdate();
        }

        public UserDataUpdate UserDataUpdate { get; set; }
    }


    public class UserDataUpdate
    {

        [Required]
        [UIHint("Password")]
        public string Password { get; set; }

        [UIHint("Password")]
        [Compare("Password", ErrorMessage = "La confirmation n'est pas bonne.")]
        public string ConfirmPassword { get; set; }

        [Required]
        public string Email { get; set; }

        [Required]
        public string PasswordQuestion { get; set; }

        [Required]
        public string PasswordAnswer { get; set; } 
    }
}